/*
 *  Copright: 2008 Philipp Leitner, Distributed Systems Group,
 *            TU Wien, leitner@infosys.tuwien.ac.at
 *
 *  This file is part of DAIOS.
 *
 *  DAIOS is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as
 *  published by the Free Software Foundation.
 * 
 *  DAIOS is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with DAIOS.  If not, see
 *  <http://www.gnu.org/licenses/>.
 * 
 */

package at.ac.tuwien.infosys.dsg.daios.wsdl.impl;

import java.util.List;

import at.ac.tuwien.infosys.dsg.daios.wsdl.interfaces.IWSDLPort;
import at.ac.tuwien.infosys.dsg.daios.wsdl.interfaces.IWSDLService;

/**
 * A Daios WSDL service.
 * 
 * @author philipp
 *
 */
public class WSDLService implements IWSDLService {

	private String name = null;
	private List<IWSDLPort> ports = null;
	
	/**
	 * Construct a new WSDL Service.
	 * 
	 * @param name The name of this service.
	 * @param ports A list of all ports defined in this service.
	 */
	public WSDLService(String name, List<IWSDLPort> ports) {
		this.name = name;
		this.ports = ports;
	}
	
	/**
	 * Get the name of this service.
	 * 
	 * @return The name of this service.
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Get all concrete ports defined in this
	 * service.
	 * 
	 * @return A list of all ports.
	 */
	public List<IWSDLPort> getPorts() {
		return ports;
	}

}
